﻿using System;
using NUnit.Framework;

namespace WcfService1
{
    [TestFixture]
    public class Tester
    {
        [Test]
        public void Test0()
        {
            foreach (var order in new OMSFacade().GetOrders())
            {
                Console.WriteLine("{0}, {1}, {2} {3}",
                                  order.OrderID,
                                  order.OrderDate,
                                  order.Customer.FirstName,
                                  order.Customer.LastName);
                foreach (var orderDetail in order.OrderDetails)
                {
                    Console.WriteLine("\t{0}, {1}, {2}",
                                      orderDetail.Product.Name,
                                      orderDetail.Price,
                                      orderDetail.Quantity);
                }
            }
        }

        [Test]
        public void Test1()
        {
        }
    }
}